﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BackCollider : MonoBehaviour
{
    Dictionary<string, GameObject> cube = new Dictionary<string, GameObject>();
    private Vector3 point = new Vector3(0.5f, 0.5f, 0);
    void Start()
    {
        
    }

    private void OnTriggerEnter(Collider other)
    {
        if (!cube.ContainsKey(other.gameObject.name))
        {
            cube.Add(other.gameObject.name, other.gameObject);
        }
    }

    private void OnTriggerExit(Collider other)
    {
        cube.Clear();
        Debug.Log("null");
    }
}
